import request from "@/utils/request.js";
import qs from 'qs'

//注册公司信息
export const registerCompany = (data) => request.post("/company/register", data)

//返回公司信息
export const getCompanyInfo = (params) => request.get("/company/companyInfo", { params })

//返回所有企业
export const getCompanyList = () => request.get("/company/allCompany")

//获取公司介绍
export const getCompanyRecommend = () => request.get("/company/recommend")

//选择公司
export const selectCompany = (data) => request.get("/company/selectCompany", data)

//获取公司对应的工作列表
export const getCompanyJobList = (params) => request.get("/company/companyJob", { params })

//获取公司详情
export const getCompanyInfoById = (params) => request.get("/company/companyInfo", { params })

//获取工作 接口为空
export const getJobRecommend = () => request.get("/job/recommend")

//获取选择的工作
export const selectJob = (data) => request.post("/job/selectJob", data)

//申请新的工作
export const applyNewJob = (params) => request.put("/job/applyNewJob", { params })

//根据id获取工作
export const getJobInfoById = (params) => request.get("/job/jobInfoById", { params })

//上传企业logo
export const uploadCompanyLogo = (data) => request.post("/company/updatePicture", data)